package com.hjq.fcloud.bean;

import com.hjq.fcloud.R;
import com.hjq.fcloud.app.AppApplication;

public class PlatformServiceFeeSignDetailData extends BaseDetailData {
    private String service_fee_ratio;
    private String service_fee_protocol_sign_mode;

    public String getService_fee_protocol_sign_mode() {
        return service_fee_protocol_sign_mode == null ? "" : service_fee_protocol_sign_mode;
    }

    public void setService_fee_protocol_sign_mode(String service_fee_protocol_sign_mode) {
        this.service_fee_protocol_sign_mode = service_fee_protocol_sign_mode;
    }

    public String getService_fee_ratio() {
        return service_fee_ratio;
    }

    public void setService_fee_ratio(String service_fee_ratio) {
        this.service_fee_ratio = service_fee_ratio;
    }

    /**
     * 签约方式，1网签 2上传纸质文件
     */
    public String getDebtConfirmModeName() {
        if (getService_fee_protocol_sign_mode().equals("1")) {
            return AppApplication.mContext.getResources().getString(R.string.string_sign_mode_from_app);
        } else if (getService_fee_protocol_sign_mode().equals("2")) {
            return AppApplication.mContext.getResources().getString(R.string.string_sign_mode_from_web);
        }
        return "";
    }
}
